<#-- 定义宏，输出月度费用表单-->

<#macro renderMonthSchedule fileList readonly=false>
	<#assign tableTitle = "${nextYear?c}年${nextMonth}月用款申请">
	<#assign feeProperty = "budgetCost">
	<#assign sumLabel = "nextSumCostLabel">
	<#assign sumCost = "nextSumCost">
	<#assign tableId = "nextScheduleTable">
	
	<table id="${tableId}" cellspacing="0"  border="0" cellpadding="0" >
		<tr class="listviewHeader">
			<td colspan="4" align="left">
				${tableTitle}
			</td>
		</tr>
		<tr class="listviewTR">
			<td width="8%" class="listviewTD" align="right">前期协调</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.manageCost??>
					${currMonthSchedule.budgetCost.manageCost?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"前期协调${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.manageCost" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".manageCost")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".manageCost")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			<td  class="listviewTD" align="right">选点规划</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.locationCost??>
					${currMonthSchedule.budgetCost.locationCost?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"选点规划${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.locationCost" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".locationCost")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".locationCost")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			
		</tr>
		
		
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">招标代理</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.desginCost??>
					${currMonthSchedule.budgetCost.desginCost?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"招标代理${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.desginCost" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".desginCost")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".desginCost")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">预可行性研究</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost2??>
					${currMonthSchedule.budgetCost.sourceCost2?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"预可行性研究${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost2" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost2")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost2")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			
		</tr>
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">地质灾害危险性评价</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost3??>
					${currMonthSchedule.budgetCost.sourceCost3?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"地质灾害危险性评价${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost3" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost3")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost3")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">工程场地地震安全性评价</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost4??>
					${currMonthSchedule.budgetCost.sourceCost4?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"工程场地地震安全性评价${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost4" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost4")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost4")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
		</tr>
		
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">建设用地压覆矿产资源专题</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost5??>
					${currMonthSchedule.budgetCost.sourceCost5?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"建设用地压覆矿产资源专题${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost5" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost5")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost5")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			<td  class="listviewTD" align="right">工程建设文物调查专题</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost6??>
					${currMonthSchedule.budgetCost.sourceCost6?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"工程建设文物调查专题${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost6" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost6")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost6")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			
		</tr>
		
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">移民安置规划大纲</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost7??>
					${currMonthSchedule.budgetCost.sourceCost7?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"移民安置规划大纲${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost7" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost7")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost7")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">移民安置规划报告</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost8??>
					${currMonthSchedule.budgetCost.sourceCost8?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"移民安置规划报告${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost8" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost8")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost8")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			
		</tr>
		<tr  class="listviewTR">
			<td  class="listviewTD" align="right">环评</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.environmentCost??>
					${currMonthSchedule.budgetCost.environmentCost?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"环评${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.environmentCost" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".environmentCost")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".environmentCost")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">水保</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.waterCost??>
					${currMonthSchedule.budgetCost.waterCost?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"水保${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.waterCost" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".waterCost")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".waterCost")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
		</tr>
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">接入系统设计</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost9??>
					${currMonthSchedule.budgetCost.manageCost?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"接入系统设计${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost9" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost9")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost9")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			<td  class="listviewTD" align="right">水资源论证</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost10??>
					${currMonthSchedule.budgetCost.sourceCost10?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"水资源论证${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost10" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost10")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost10")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			
		</tr>
		
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">水工程规划同意书</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost11??>
					${currMonthSchedule.budgetCost.sourceCost11?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"水工程规划同意书${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost11" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost11")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost11")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">防洪评价</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost12??>
					${currMonthSchedule.budgetCost.sourceCost12?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"防洪评价${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost12" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost12")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost12")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			
		</tr>
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">建设项目选址意见书</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost13??>
					${currMonthSchedule.budgetCost.sourceCost13?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"建设项目选址意见书${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost13" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost13")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost13")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">建设用地预审</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost14??>
					${currMonthSchedule.budgetCost.sourceCost14?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"建设用地预审${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost14" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost14")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost14")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
		</tr>
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">工程安全预评价</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost15??>
					${currMonthSchedule.budgetCost.sourceCost15?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"工程安全预评价${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost15" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost15")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost15")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			<td  class="listviewTD" align="right">正常蓄水位选择专题</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost16??>
					${currMonthSchedule.budgetCost.sourceCost16?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"正常蓄水位选择专题${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost16" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost16")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost16")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			
		</tr>
		
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">枢纽布置总格局专题</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost17??>
					${currMonthSchedule.budgetCost.sourceCost17?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"枢纽布置总格局专题${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost17" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost17")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost17")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">施工总布置规划专题</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost18??>
					${currMonthSchedule.budgetCost.sourceCost18?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"施工总布置规划专题${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost18" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost18")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost18")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			
		</tr>
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">防震抗震安全评价专题</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost19??>
					${currMonthSchedule.budgetCost.sourceCost19?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"防震抗震安全评价专题${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost19" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost19")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost19")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">可研编制</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.feasibilityCost??>
					${currMonthSchedule.budgetCost.feasibilityCost?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"可研编制${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.feasibilityCost" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".feasibilityCost")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".feasibilityCost")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
		</tr>
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">可研咨询</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost20??>
					${currMonthSchedule.budgetCost.sourceCost20?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"可研咨询${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost20" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost20")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost20")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			<td  class="listviewTD" align="right">可研评审</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.feasibilityReviewCost??>
					${currMonthSchedule.budgetCost.feasibilityReviewCost?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"可研评审${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.feasibilityReviewCost" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".feasibilityReviewCost")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".feasibilityReviewCost")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			
		</tr>
		
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">工程安全监测设计专题</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost21??>
					${currMonthSchedule.budgetCost.sourceCost21?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"工程安全监测设计专题${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost21" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost21")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost21")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">节能评估</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.powerEvalCost??>
					${currMonthSchedule.budgetCost.powerEvalCost?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"节能评估${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.powerEvalCost" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".powerEvalCost")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".powerEvalCost")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			
		</tr>
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">项目核准申请报告</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost22??>
					${currMonthSchedule.budgetCost.sourceCost22?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"项目核准申请报告${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost22" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost22")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost22")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td  class="listviewTD" align="right">站址涉及自然保护区调整</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost23??>
					${currMonthSchedule.budgetCost.sourceCost23?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"站址涉及自然保护区调整${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost23" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost23")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost23")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
		</tr>
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">站址涉及生态严控区调整</td>
			<td  colspan="1" class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost24??>
					${currMonthSchedule.budgetCost.sourceCost24?c}
					</#if>
				<#else>
					<input datarule="number" datarulejson='{"displayName":"站址涉及生态严控区调整${nextMonth}月用款申请","precision":"6","length":"8"}'   
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost24" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost24")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost24")?eval?c}"
					</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
	
			<td  class="listviewTD" align="right">水库淹没及建设征地范围及实物指标调查细则</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost25??>
					${currMonthSchedule.budgetCost.sourceCost25?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"水库淹没及建设征地范围及实物指标调查细则${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost25" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost25")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost25")?eval?c}"
					</#if>
					>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			
		</tr>
		
		
		
		
		<tr class="listviewTR">
			<td  class="listviewTD" align="right">林业用地可行性研究</td>
			<td  class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.sourceCost26??>
					${currMonthSchedule.budgetCost.sourceCost26?c}
					</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"林业用地可行性研究${nextMonth}月用款申请","precision":"6","length":"8"}'  
					type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sourceCost26" 
					<#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sourceCost26")?eval)??>
					value="${("currMonthSchedule."+feeProperty+".sourceCost26")?eval?c}"
					</#if>
					>				
				</#if>
				&nbsp;&nbsp;万元
			</td>
			<td class="listviewTD" align="right">其他（具体）</td>
			<td class="listviewContent">
				<#if readonly>
					<#if currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.otherCost??>${currMonthSchedule.budgetCost.otherCost?c}</#if>
				<#else>
					<input  datarule="number"  datarulejson='{"displayName":"其他（具体）${nextMonth}月用款申请","precision":"6","length":"8"}'   type="text" class="text" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.otherCost" <#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".otherCost")?eval)??>value="${("currMonthSchedule."+feeProperty+".otherCost")?eval?c}"</#if>>
				</#if>
				&nbsp;&nbsp;万元
			</td>
			
		</tr>
		<tr class="listviewTR">
			<td class="listviewTD" align="right">小计</td>
			<td class="listviewContent" colspan="3">
				<label id="${sumLabel}"><#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sumCost")?eval)??>${("currMonthSchedule."+feeProperty+".sumCost")?eval}<#else>0</#if></label>
				&nbsp;&nbsp;万元
				<#if !readonly>
					<input id="${sumCost}" type="hidden" name="fieldMap['${field.name}'].monthSchedule.${feeProperty}.sumCost" <#if currMonthSchedule?? && (("currMonthSchedule."+feeProperty)?eval)?? && (("currMonthSchedule."+feeProperty+".sumCost")?eval)??>value="${("currMonthSchedule."+feeProperty+".sumCost")?eval?c}"</#if>>
				</#if>
			</td>
		</tr>
		<tr class="listviewTR">
			<td class="listviewTD" align="right">财务预算文件</td>
			<td class="listviewContent" colspan="5">
				<@renderAttachment fileList=fileList readonly=readonly/>
			</td>
		</tr>
	</table>
</#macro>

<#-- 定义宏，输出附件区域 -->
<#macro renderAttachment fileList readonly=false>

<#assign filePanelPrefix = "nextFileInfo">
<#assign scheduleProperty = "monthSchedule">
<#assign uploadifyId = "uploadifyNext">

<table cellspacing="0" cellpadding="0" width="100%">
	<#if fileList?? && (fileList?size?default(0) > 0)>
	<#assign index = 1>
	<tr class="listviewTR">
		<td width="85%" colSpan=6 style="line-height:20px">
			<#list fileList as fileInfo>
				<div id="${filePanelPrefix}${field.name}${fileInfo.fileId}">
					<input type=hidden name="fieldMap['${field.name}'].${scheduleProperty}.oldFileQueue[${index}].fileId" value="${fileInfo.fileId}">
					<div style="position:relative;+position:static;_position:static;float:left;clear:left">
						<span class="fileName">
							<div style="width:650px">
								<div style="position:relative;+position:static;_position:static;clear:left;float:left;padding:2px;clear:left;width:20px">
									<img border="0" src="/PNPMS/script/plugins/Uploadify/global.jpg" class="statusimg">
								</div>
								<div style="position:relative;+position:static;_position:static;float:left;width:500px">
									&nbsp;[${fileInfo.dateTime?string('yyyy-MM-dd')}]&nbsp;&nbsp;<a href="javascript:void(0);" onclick="downloadAttachment${field.name?replace('.','_')}('${fileInfo.fileId}');return false;"><#if fileInfo.realName?? && fileInfo.aliasName??><span title="${fileInfo.realName}">${fileInfo.aliasName}</span><#else>${fileInfo.realName}</#if></a>
									<#if fileInfo.ext?? && (fileInfo.ext=='doc' || fileInfo.ext=='DOC' || fileInfo.ext=='docx' || fileInfo.ext=='DOCX' || fileInfo.ext=='xls' || fileInfo.ext=='XLS' || fileInfo.ext=='xlsx' || fileInfo.ext=='XLSX' || fileInfo.ext=='pdf' || fileInfo.ext=='PDF' || fileInfo.ext=='jpg' || fileInfo.ext=='JPG' || fileInfo.ext=='jpeg' || fileInfo.ext=='JPEG' || fileInfo.ext=='bmp' || fileInfo.ext=='BMP' || fileInfo.ext=='png' || fileInfo.ext=='PNG' || fileInfo.ext=='gif' || fileInfo.ext=='GIF' || fileInfo.ext=='tif' || fileInfo.ext=='TIF' || fileInfo.ext=='ppt' || fileInfo.ext=='PPT' || fileInfo.ext=='pptx' || fileInfo.ext=='PPTX')>
									&nbsp;<a href="javascript:void(0);" onclick="viewAttachment${field.name?replace('.','_')}('${fileInfo.fileId}');return false;">预览</a>
									</#if>
								</div>
								<div style="position:relative;+position:static;_position:static;float:left;width:20px" class="cancel">
									<#if !formField.readonly?? || formField.readonly=="0">
									<a href="javascript:void(0);" onclick="javascript:deleteAttachment('${filePanelPrefix}${field.name}', '${fileInfo.fileId}');"><img border="0" src="/PNPMS/theme/default/images/main/delete.png"/></a>
									</#if>
								</div>
							</div>
						</span>
					</div>
				</div>
				<#assign index = index+1>
			</#list>
		</td>
	</tr>
	</#if>
	<#if !readonly>
	<tr class="listviewTR">
		<td colspan=6>
			<div id="fieldMap['${field.name}'].${scheduleProperty}.fileQueue" style="text-align: left;">
				<#assign index=1>
				<#if businessInstanceField?? && (("businessInstanceField." + scheduleProperty)?eval)?? && (("businessInstanceField." + scheduleProperty + ".fileQueue")?eval)??>
					<#list ("businessInstanceField." + scheduleProperty + ".fileQueue")?eval as fileInfo>
						<#if fileInfo?? && fileInfo.realName??>
						<div id="uploadify${field.name}newfile${index}" class="uploadifyQueueItem completed" style="width:650px">
							<div style="width:520px;clear:left;float:left">
								<span class="fileName">
								<img class="statusimg" border="0" src="/PNPMS/script/plugins/Uploadify/global.jpg">
								&nbsp;${fileInfo.realName}(${fileInfo.fileSize})
								</span>
								<span class="percentage"></span>
							</div>
							<div class="cancel" style="padding:2px;float:left;width:20px">
								<a href="javascript:jQuery('#uploadify${field.name}').uploadifyCancel('newfile${index}')">
								<img border="0" src="/PNPMS/theme/default/images/main/delete.png">
								</a>
							</div>
							<input id="uploadify${field.name}newfile${index}hidvalue" type="hidden" value='{"aliasName":null,"company":null,"dateTime":null,"ext":null,"fileData":null,"fileId":null,"fileType":null,"length":0,"node":null,"fileSize":"${fileInfo.fileSize}","realName":"${fileInfo.realName}","realPath":"${fileInfo.realPath?replace('\\','/')}"}' name="fieldMap['${field.name}'].${scheduleProperty}.fileQueue">
						</div>
						<#assign index=index + 1>
						</#if>
					</#list>
				</#if>
			</div>
			<div style="clear:both"><input type="file" name="uploadify${field.name}" id="${uploadifyId}${field.name?replace('.','_')}" />
			<script>
			$(document.getElementById('${uploadifyId}${field.name?replace('.','_')}')).uploadify({
			    'basepath'  : TDQS.CONTEXT_PATH,
			    'queueID'   : "fieldMap['${field.name}'].${scheduleProperty}.fileQueue",
			    'fileDesc' 	: '请选择财务预算文件',
			    'sizeLimit' : 1024*1024*100,
			    'fileExt' 	: '*.doc;*.docx;*.xls;*.xlsx;*.pdf;*.zip;*.rar;*.jpg;*.jpeg;*.gif;*.png;*.bmp;*.DWG;*.psd;*.dws;*.dxf;*.dwt;*.ppt;*.pptx;*.mmp;*.vsd;*.tif'
			    ,
			    'onSelect' : function(){
	            	$('.button','.buttonBox').attr('disabled','disabled');
	            },
	            'onCancel' : function(){
	            	$('.button','.buttonBox').attr('disabled',false);
	            },
	        	'onComplete' : function(event, ID, fileObj, response, data){
	            	$('.button','.buttonBox').attr('disabled',false);
	            },
	            'onError' : function(){
            		$('.button','.buttonBox').attr('disabled',false);
	            },
	            'onFileSizeError' : function(){
	            	$('.button','.buttonBox').attr('disabled',false);
	            }
			});
			</script>
		</td>
	</tr>
	</#if>	
</table>
</#macro>

<#-- 定义宏，输出历史费用列表 -->
<#macro renderList>

<#assign historyScheduleProperty = "monthsche">
<#assign historyFeeProperty = "budgetCost">

<div class='pre_plan_group_00000000000000256_planView_div'>
<table cellspacing="1" width="200px" border="0" cellpadding="0" class="listviewTable">
	<tr class="listviewHeader">
		<td class="listviewTD">月份</td>
		<td class="listviewTD">前期协调</td>
		<td class="listviewTD">选点规划</td>
		
		<td class="listviewTD">招标代理</td>	
		<td class="listviewTD">预可行性研究</td>	
		<td class="listviewTD">地质灾害危险性评价</td>	
		<td class="listviewTD">工程场地地震安全性评价</td>	
		<td class="listviewTD">建设用地压覆矿产资源专题</td>	
		<td class="listviewTD">工程建设文物调查专题</td>	
		<td class="listviewTD">移民安置规划大纲</td>	
		<td class="listviewTD">移民安置规划报告</td>	
		<td class="listviewTD">环评 </td>	
		<td class="listviewTD">水保</td>	
		<td class="listviewTD">接入系统设计</td>	
		<td class="listviewTD">水资源论证</td>	
		<td class="listviewTD">水工程规划同意书</td>	
		<td class="listviewTD">防洪评价</td>	
		<td class="listviewTD">建设项目选址意见书</td>	
		<td class="listviewTD">建设用地预审</td>	
		<td class="listviewTD">工程安全预评价</td>		
		<td class="listviewTD">正常蓄水位选择专题</td>
		<td class="listviewTD">枢纽布置总格局专题</td>
		<td class="listviewTD">施工总布置规划专题</td>
		<td class="listviewTD">防震抗震安全评价专题</td>
		<td class="listviewTD">可研编制</td>
		<td class="listviewTD">可研咨询</td>
		<td class="listviewTD">可研评审</td>
		<td class="listviewTD">工程安全监测设计专题</td>
		<td class="listviewTD">节能评估</td>
		<td class="listviewTD">项目核准申请报告</td>
		<td class="listviewTD">站址涉及自然保护区调整</td>
		<td class="listviewTD">站址涉及生态严控区调整</td>
		<td class="listviewTD">水库淹没及建设征地范围及实物指标调查细则</td>
		<td class="listviewTD">林业用地可行性研究</td>
		
				
		<td class="listviewTD">其他（具体）</td>
		<td class="listviewTD">小计</td>
	</tr>
	<#list monthsche_list as monthsche>
	<#if monthsche?? && (monthsche.year!=year || monthsche.month!=month)>
	<tr class="listviewTR">
		<td class="listviewTD"><#if (historyScheduleProperty?eval)??>${(historyScheduleProperty + ".year")?eval}年${(historyScheduleProperty + ".month")?eval}月<#else>&nbsp;&nbsp;</#if></td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".manageCost")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".manageCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".locationCost")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".locationCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost1")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".desginCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost2")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost2")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost3")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost3")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost4")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost4")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost5")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost5")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost6")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost6")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost7")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost7")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost8")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost8")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".environmentCost")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".environmentCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".waterCost")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".waterCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost9")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost9")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost10")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost10")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost11")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost11")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost12")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost12")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost13")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost13")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost14")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost14")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost15")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost15")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost16")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost16")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost17")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost17")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost18")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost18")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost19")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost19")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".feasibilityCost")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".feasibilityCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost20")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost20")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".feasibilityReviewCost")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".feasibilityReviewCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost21")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost21")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".powerEvalCost")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".powerEvalCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost22")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost22")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost23")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost23")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost24")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost24")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost25")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost25")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sourceCost26")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sourceCost26")?eval?c}</#if>&nbsp;&nbsp;万元</td>

		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".otherCost")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".otherCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
		<td class="listviewTD"><#if monthsche?? && (historyScheduleProperty?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty)?eval)?? && ((historyScheduleProperty+"."+historyFeeProperty+".sumCost")?eval)??>${(historyScheduleProperty+"."+historyFeeProperty+".sumCost")?eval?c}</#if>&nbsp;&nbsp;万元</td>
	</tr>
	</#if>
	</#list>
</table>
</div>
</#macro>

<#if !formField.readonly?? || formField.readonly=="0">
<input type=hidden name="fieldMap['${field.name}'].field.id"  value="${formField.field.id}">
<input type="hidden" name="fieldMap['${field.name}'].entityId" <#if currMonthSchedule?? && currMonthSchedule.id??>value="${currMonthSchedule.id}"</#if>>
<input type="hidden" name="fieldMap['${field.name}'].monthSchedule.id" <#if currMonthSchedule?? && currMonthSchedule.id?? >value="${currMonthSchedule.id}"</#if>>
<input type="hidden" name="fieldMap['${field.name}'].monthSchedule.budgetCost.id" <#if currMonthSchedule?? && currMonthSchedule?? && currMonthSchedule.budgetCost?? && currMonthSchedule.budgetCost.id??>value="${currMonthSchedule.budgetCost.id}"</#if>>
</#if>

<table cellspacing="0" width="100%" border="0" cellpadding="0" >
	<#if !formField.readonly?? || formField.readonly=="0">
		<tr>
			<td>
				<@renderMonthSchedule fileList=fileinfo_list readonly=false/>
			</td>
		</tr>
	<#else>
		<tr>
			<td>
				<@renderMonthSchedule fileList=fileinfo_list readonly=true/>
			</td>
		</tr>
	</#if>
	<tr>
		<td>
		<table id="historyScheduleTable" cellspacing="0" width="100%" border="0" cellpadding="0" class="listviewTable">
				<tr class="listviewHeader">
					<td>
						<div id="showMonthSpan" onclick="showMonthHistoryList();return false;" class="tableOpen"></div><div style="float:left;line-height:17px;">&nbsp;费用申请记录</div>
					</td>
				</tr>
				<tr id="monthHistoryList">
					<td>			
					<div id="nextScheList" style="display:none;float:left;clear:left;width:600px; overflow-x: scroll;">
						<@renderList/>
					</div>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<script>
function downloadAttachment${field.name?replace('.','_')}(attachmentId) {
	var url = TDQS.CONTEXT_PATH+"/download/downLoadAttachment?attachmentId="+attachmentId+"&date="+new Date().toLocaleString();
  	var frame = document.createElement("iframe");
	frame.src = url;
	frame.style.display = "none";
	document.body.appendChild(frame);
}
function viewAttachment${field.name?replace('.','_')}(attachmentId) {
	var url = TDQS.CONTEXT_PATH+"/download/viewAttachment?attachmentId="+attachmentId+"&instanceId=<#if businessInstanceField?? && businessInstanceField.instance?? && businessInstanceField.instance.id??>${businessInstanceField.instance.id}</#if>&date="+new Date().toLocaleString();
    window.open(url);
}

function deleteAttachment(element, index) {
  	jConfirm('确认要删除附件吗？', '确认对话框 ', function(r) {
		if(r){
			$(document.getElementById(element+index)).remove();
		}else{
			return false;
		}
	});
}

function showMonthHistoryList() {
	if($('#showMonthSpan').hasClass("tableOpen")) {
		$('#monthHistoryList').hide();
		$('#showMonthSpan').removeClass("tableOpen");
		$('#showMonthSpan').addClass("tableClose");
	} else {
		$('#monthHistoryList').show();
		$('#showMonthSpan').removeClass("tableClose");
		$('#showMonthSpan').addClass("tableOpen");
	}
}
function nextSumCostResult() {
	var sum = new Number(0);
	
	$('input','#nextScheduleTable').each(function(){
		if($(this).val()!='' && $(this).attr('id')!='nextSumCost') {
			try{
				var cost = new Number($(this).val());
				if(cost && cost+''!='NaN' && cost!=null) {
					sum  = floatAdd(sum,cost);
					$('#nextSumCost').val(sum);
					if($('#nextSumCostLabel').html()=='') {
						if(sum!=0) {
							$('#nextSumCostLabel').html(sum);
							$('#nextSumCost').val(sum);
						}
					} else {
						$('#nextSumCostLabel').html(sum);
						$('#nextSumCost').val(sum);
					}
				}
			}catch(e){}
		}
	});
}
$(document).ready(function(){
	<#if !formField.readonly?? || formField.readonly=="0">
		$('input','#nextScheduleTable').blur(function(){
			nextSumCostResult();
		});
	</#if>
	$('#nextScheList').css("width",$("body").width()-20);
});
</script>